<?=form_open_multipart(uri_string())?>    
<table class="form">
    <tr>
        <td class="label" style="width: 150px;">Chuyên mục cha</td>
        <td>
            <select id="parent_id" name="parent_id" class="w350">
                <option value="0">Là chuyên mục chính</option>
                <?php echo $option_pid?>
            </select>
        </td>
    </tr> 
    <tr>
        <td class="required label" style="width: 150px;">Tên chuyên mục</td>
        <td><input type="text" name="cat_name" id="cat_name" class="w350" value="<?php echo $rs->cat_name ?>"></td>
    </tr> 
    <tr>
        <td class="label" style="width: 150px;">Tên nhóm tin</td>
        <td><input type="text" name="name_block" id="name_block" class="w350" value="<?php echo $rs->name_block ?>"></td>
    </tr>
    <tr>
        <td class="required label" style="width: 150px;">Alias</td>
        <td><input type="text" name="name_alias" id="name_alias" class="w350" value="<?php echo $rs->name_alias ?>"></td>
    </tr>
    <!--<tr style="display:none;">
        <td class="label" style="width: 150px;">Level</td>
        <td><input type="text" name="nb_level" id="nb_level" class="w350" value="<?php echo $rs->nb_level?>"></td>
    </tr>-->
    <tr>
        <td class="label" style="width: 150px;">Thứ tự</td>
        <td><input type="text" name="nb_order" id="nb_order" class="w350" value="<?php echo $rs->nb_order?>"></td>
    </tr>
    <tr>
        <td class="label">Trạng thái</td>
        <td>
        <input type="checkbox" name="bl_active" id="bl_active" <? if($rs->bl_active==1) echo 'checked';?>  value="1" />
        Menu chính : <input type="checkbox" name="is_menu" id="is_menu" <? if($rs->is_menu==1) echo 'checked';?>  value="1" /></td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <input type="submit" name="bt_submit" value="" class="capnhat">
        </td>
    </tr>  
</table>
<?=form_close()?>
<script language="javascript">
$(document).ready(function(e) {
    $('#cat_name').change(function(e) {
		var str = kodau($('#cat_name').val());
        $('#name_alias').val(str);
    });
});
</script>